FROM node:18
WORKDIR /app
COPY *.json ./
COPY *.mjs ./
COPY src ./src/
COPY public ./public/
COPY .env.local ./
RUN yarn config set registry https://registry.npmmirror.com
RUN yarn install
RUN yarn run build
ENTRYPOINT npx next start -p 4000
